e58fe62230285a4b5b7892ca911770e43db2eee3,server/src/main/java/com/vaadin/ui/ComboBox.java,ComboBox,paintContent,#PaintTarget#,234

Before Change


                getCaptionChangeListener().addNotifierForItem(id);

                // Paints the option
                target.startTag("so");
                if (icon != null) {
                    target.addAttribute("icon", icon);
                }
                target.addAttribute("caption", caption);
                if (id != null && id.equals(getNullSelectionItemId())) {
                    target.addAttribute("nullselection", true);
                }
                target.addAttribute("key", key);
                if (keyIndex < selectedKeys.length && isSelected(id)) {
                    // at most one item can be selected at a time
                    selectedKeys[keyIndex++] = key;
                }

                paintItemStyle(target, id);

                target.endTag("so");
            }
            target.endTag("options");

After Change


            // paint the items
            target.startTag("options");
            for (ComboBoxItem item : items) {
                target.startTag("so");
                if (item.icon != null) {
                    target.addAttribute("icon", item.icon);
                }
                target.addAttribute("caption", item.caption);
                target.addAttribute("key", item.key);
                if (item.style != null) {
                    target.addAttribute("style", item.style);
                }

                target.endTag("so");
            }
            target.endTag("options");